/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.token.domain.entities;

import java.io.Serializable;

import javax.persistence.Embeddable;

import com.opgea.token.domain.qualifiers.PrefixQualifier;

/**
 * 
 * @author Ramesh
 */
@Embeddable
public class Person implements Serializable {

    private static final long serialVersionUID = -7494951266999546299L;
    private PrefixQualifier prefix;
    private Name name;

    public Person() {
    }

    public Person(PrefixQualifier prefix, Name name) {
	this.prefix = prefix;
	this.name = name;
    }

    public Name getName() {
	return name;
    }

    public void setName(Name name) {
	this.name = name;
    }

    public PrefixQualifier getPrefix() {
	return prefix;
    }

    public void setPrefix(PrefixQualifier prefix) {
	this.prefix = prefix;
    }

    @Override
    public String toString() {
	return "Person{" + "prefix=" + prefix + ", name=" + name + '}';
    }

}
